﻿@model myMvcBlog.Models.PagerView

<div class="navigation">
    @if (Model.CurrentPage < Model.PageCount - 1)
    {
        <div class="alignleft">@Html.ActionLink("上一页", Model.ActionName, new { page = Model.CurrentPage + 1 })</div>
    }
    @if (Model.CurrentPage > 0)
    { 
        <div class="alignright">
            @Html.ActionLink("下一页", Model.ActionName, new { page = Model.CurrentPage - 1 })
        </div>
    }
</div>